/**
 * Auto gen via dbpojo-gen.
 */
package com.us.usws.service.cud;

import com.us.usws.model.domain.video.Video;
import com.us.usws.model.domain.video.VideoFile;

/**
 * Service interface
 * @author robot
 */
public interface VideoCUDService {

	public Video getVideo(String uid);

	/**
	 * Insert one row.
	 */
	public String addVideo(Video video);

	public boolean addVideo(Video video, VideoFile videoFile);

	public boolean addVideoFromTmp(Video video, VideoFile videoFile);

	/**
	 * Update by PK.
	 */
	public void updateVideo(Video video);

	public void updateVideo(Video video, VideoFile videoFile);

	/**
	 * Delete row by PK.
	 */
	public void deleteVideo(String uid);

	/**
	 * Delete batch.
	 */
	public void deleteVideoMore(String uids);

	/**
	 * update video status
	 * @param uids
	 * @param lastUpdateUid
	 * @param status
	 */
	public void changeVideoStatus(String uids, String lastUpdateUid, Integer status);

}